package user;

import book.BookList;
import operation.IOperation;

public  abstract class User {
    protected  String name;
    public IOperation[]iOperations;//只是定义，没有初始化
    public User(String name) {
        this.name = name;
    }
    public  abstract int menu();//不享有自己的实现，所以加了abstract，让子类重写
    public void doOperation(int choice, BookList bookList){
        iOperations[choice].work(bookList);

    }

}
